package apiwork.lcbmi.manager;

import java.util.Date;
import java.util.HashMap;

import apiwork.lcbmi.Server;

public class ServerInfo {
	public final static String SERVER_STARTING = "starting";
	public final static String SERVER_RUNNING = "running";
	public final static String SERVER_STOPING = "stoping";
	public final static String SERVER_STOPED = "stoped";
	public final static String SERVER_EXCEPTION = "exception";
	
	private Server server;

	private String name;
	private String status;
	private Integer port;
	
	private Date startTime;
	private Date stopTime;

	private int allSessionCount;
	private int allOperationCount;
	
	private int maxSessionCount;
	private Date maxSessionTime;
	
	private HashMap<String, Object> params = new HashMap<String, Object>();

	public int getAllOperationCount() {
		return allOperationCount;
	}

	public void setAllOperationCount(int allOperationCount) {
		this.allOperationCount = allOperationCount;
	}

	public int getAllSessionCount() {
		return allSessionCount;
	}

	public void setAllSessionCount(int allSessionCount) {
		this.allSessionCount = allSessionCount;
	}

	public int getMaxSessionCount() {
		return maxSessionCount;
	}

	public void setMaxSessionCount(int maxSessionCount) {
		this.maxSessionCount = maxSessionCount;
	}

	public Date getMaxSessionTime() {
		return maxSessionTime;
	}

	public void setMaxSessionTime(Date maxSessionTime) {
		this.maxSessionTime = maxSessionTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public HashMap<String, Object> getParams() {
		return params;
	}

	public void setParams(HashMap<String, Object> params) {
		this.params = params;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Server getServer() {
		return server;
	}

	public void setServer(Server server) {
		this.server = server;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getStopTime() {
		return stopTime;
	}

	public void setStopTime(Date stopTime) {
		this.stopTime = stopTime;
	} 
}
